import request from '@/utils/request'

const noticeApi =() => {
  return {
    getNoticeList: (data) => {
      return request.post('/notice/list', data)
    },
    changeStatus: (data) => {
      return request.post('/notice/changeStatus', data)
    },
    addNotice: (data) => {
      return request.post('/notice/add', data)
    },
    deleteById(id) {
      return request.get('/notice/delete', { params: { id } })
    },
    activeList() {
      return request.get('/notice/active-list')
    }
  }
}
export default noticeApi()
